package secure;

/**
 * Created with IntelliJ IDEA.
 * ClassName: NewYear
 * Package: secure
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-08-13
 * Time: 14:25
 */

//新年倒计时
public class NewYear {
    //10,9,8...0 新年倒计时
    public static void main(String[] args) {

        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 10; i > 0; i--) {
                    System.out.println("倒计时: " + i + "秒");
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }

                System.out.println("新年快乐");
            }
        }).start();

    }
}
